package com.homedo.odin.solution.model.request.mng;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(description = "Mng_产品资料需求列表")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class MngProductReqsListRequestBean extends BaseBean {

    @ApiModelProperty(value = "提交时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "操作时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码非法")
    @Min(value = 0, message = "当前页码非法")
    private Integer pageNum;

    @ApiModelProperty(value = "每页条数", required = true)
    @NotNull(message = "每页条数非法")
    @Min(value = 0, message = "每页条数非法")
    private Integer pageSize;
}